<?php
/**
 * 角色修改参数
 *
 * @author: WangBin
 * @date: 2021/7/26
 * @mail: <849850352@qq.com>
 */
namespace App\Params\Backend;

use App\Params\Param;

class RoleUpdateParam extends Param
{
    public $role_id;
    public $role_name;
    public $role_bn;
    public $is_active = 1;

    public function rules()
    {
        return [
            'role_name' => 'required|string',
            'is_active' => 'boolean',
            'role_bn' => 'nullable|string',
            'role_id' => 'nullable|integer'
        ];
    }

    /**
     * @return mixed
     */
    public function getRoleId()
    {
        return $this->role_id;
    }

    /**
     * @param mixed $role_id
     */
    public function setRoleId($role_id): void
    {
        $this->role_id = $role_id;
    }

    /**
     * @return mixed
     */
    public function getRoleName()
    {
        return $this->role_name;
    }

    /**
     * @param mixed $role_name
     */
    public function setRoleName($role_name): void
    {
        $this->role_name = $role_name;
    }

    /**
     * @return mixed
     */
    public function getRoleBn()
    {
        return $this->role_bn;
    }

    /**
     * @param mixed $role_bn
     */
    public function setRoleBn($role_bn): void
    {
        $this->role_bn = $role_bn;
    }

    /**
     * @return int
     */
    public function getIsActive(): int
    {
        return $this->is_active;
    }

    /**
     * @param int $is_active
     */
    public function setIsActive(int $is_active): void
    {
        $this->is_active = $is_active;
    }
}